<template>
    <h1>11</h1>
    <div @click="add">{{ count }}</div>
</template>

<script lang="ts" setup>
import { computed } from "vue";
// import { useStore } from 'vuex'
import { useStore } from "/@/lib/store/index";

const store = useStore();
console.log("store", store);
const count = computed(() => store.state.count);

function add() {
  store.dispatch("asyncAdd");
}
</script>
